package Fuente;
import Castor.Castor;
import Comun.clsSaicFrame;

public class Cabecera extends clsSaicFrame {
    private javax.swing.JFrame reserva;
    public String mensaje;
    private int id;
    private boolean flag = false;
    private Castor mascota=new Castor();
    public Cabecera(String nombre, String cab) {
        initComponents();
        this.panelRoundTranslucido1.setVisible(false);
        this.panelRoundTranslucido4.setVisible(false);
        this.saicButton3.setText("Usuario: "+nombre);
        ini.setVisible(true);
        reserva = ini;
        if(cab.equals("ADMON")){

        }
        
    }
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        efectos1 = new Efectos.Efectos();
        datahabilitador1 = new FuenteDeDatos.Datahabilitador();
        dataSource1 = new FuenteDeDatos.DataSource();
        panelRoundTranslucido1 = new Comun.PanelRoundTranslucido();
        SaicDonadores = new Comun.SaicButton();
        SaicPacientes = new Comun.SaicButton();
        SaicCitas = new Comun.SaicButton();
        SaicTecnicos = new Comun.SaicButton();
        SaicBitacora = new Comun.SaicButton();
        panelRoundTranslucido2 = new Comun.PanelRoundTranslucido();
        saicButton2 = new Comun.SaicButton();
        buttonSeven1 = new org.edisoncor.gui.button.ButtonSeven();
        panelRoundTranslucido4 = new Comun.PanelRoundTranslucido();
        SaicTransfuciones = new Comun.SaicButton();
        SaicDonaciones = new Comun.SaicButton();
        SaicConsultas = new Comun.SaicButton();
        SaicBanco = new Comun.SaicButton();
        panelRoundTranslucido3 = new Comun.PanelRoundTranslucido();
        SaicBanco4 = new Comun.SaicButton();
        SaicBanco3 = new Comun.SaicButton();
        SaicBanco5 = new Comun.SaicButton();
        SaicBanco1 = new Comun.SaicButton();
        SaicSalir = new Comun.SaicButton();
        panelRoundTranslucido5 = new Comun.PanelRoundTranslucido();
        saicButton3 = new Comun.SaicButton();

        dataSource1.setCodigosql("");
        dataSource1.setDb("db_saic");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(51, 153, 255));
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowDeactivated(java.awt.event.WindowEvent evt) {
                formWindowDeactivated(evt);
            }
        });

        panelRoundTranslucido1.setOpaque(false);
        panelRoundTranslucido1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                panelRoundTranslucido1MouseClicked(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                panelRoundTranslucido1MouseExited(evt);
            }
        });
        panelRoundTranslucido1.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                panelRoundTranslucido1KeyPressed(evt);
            }
        });
        panelRoundTranslucido1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        SaicDonadores.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SaicDonadores.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/cuatro.png"))); // NOI18N
        SaicDonadores.setText("Donadores");
        SaicDonadores.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        SaicDonadores.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        SaicDonadores.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/img/cuatro.png"))); // NOI18N
        SaicDonadores.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/img/cuatro.png"))); // NOI18N
        SaicDonadores.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/img/cuatro.png"))); // NOI18N
        SaicDonadores.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/img/cuatro.png"))); // NOI18N
        SaicDonadores.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SaicDonadores.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SaicDonadoresMouseClicked(evt);
            }
        });
        panelRoundTranslucido1.add(SaicDonadores, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 20, 73, -1));

        SaicPacientes.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SaicPacientes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/nuevo.png"))); // NOI18N
        SaicPacientes.setText("Pacientes");
        SaicPacientes.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        SaicPacientes.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        SaicPacientes.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/img/nuevo.png"))); // NOI18N
        SaicPacientes.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/img/nuevo.png"))); // NOI18N
        SaicPacientes.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/img/nuevo.png"))); // NOI18N
        SaicPacientes.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/img/nuevo.png"))); // NOI18N
        SaicPacientes.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SaicPacientes.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SaicPacientesMouseClicked(evt);
            }
        });
        panelRoundTranslucido1.add(SaicPacientes, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, 79, -1));

        SaicCitas.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SaicCitas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/dos.png"))); // NOI18N
        SaicCitas.setText("Citas");
        SaicCitas.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        SaicCitas.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        SaicCitas.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/img/dos.png"))); // NOI18N
        SaicCitas.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/img/dos.png"))); // NOI18N
        SaicCitas.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/img/dos.png"))); // NOI18N
        SaicCitas.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/img/dos.png"))); // NOI18N
        SaicCitas.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SaicCitas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SaicCitasMouseClicked(evt);
            }
        });
        panelRoundTranslucido1.add(SaicCitas, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 102, 79, -1));

        SaicTecnicos.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SaicTecnicos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/mod.png"))); // NOI18N
        SaicTecnicos.setText("Técnicos");
        SaicTecnicos.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        SaicTecnicos.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        SaicTecnicos.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/img/mod.png"))); // NOI18N
        SaicTecnicos.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/img/mod.png"))); // NOI18N
        SaicTecnicos.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/img/mod.png"))); // NOI18N
        SaicTecnicos.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/img/mod.png"))); // NOI18N
        SaicTecnicos.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SaicTecnicos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SaicTecnicosMouseClicked(evt);
            }
        });
        panelRoundTranslucido1.add(SaicTecnicos, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 100, 73, -1));

        SaicBitacora.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SaicBitacora.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/dos2.png"))); // NOI18N
        SaicBitacora.setText("Bitácora");
        SaicBitacora.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        SaicBitacora.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        SaicBitacora.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/img/dos2.png"))); // NOI18N
        SaicBitacora.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/img/dos2.png"))); // NOI18N
        SaicBitacora.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/img/dos2.png"))); // NOI18N
        SaicBitacora.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/img/dos2.png"))); // NOI18N
        SaicBitacora.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SaicBitacora.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SaicBitacoraMouseClicked(evt);
            }
        });
        panelRoundTranslucido1.add(SaicBitacora, new org.netbeans.lib.awtextra.AbsoluteConstraints(26, 184, 73, -1));

        saicButton2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        saicButton2.setText("Sistema de Administración de Información Clinica");
        saicButton2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                saicButton2MouseClicked(evt);
            }
        });

        buttonSeven1.setText("+");
        buttonSeven1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonSeven1ActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout panelRoundTranslucido2Layout = new org.jdesktop.layout.GroupLayout(panelRoundTranslucido2);
        panelRoundTranslucido2.setLayout(panelRoundTranslucido2Layout);
        panelRoundTranslucido2Layout.setHorizontalGroup(
            panelRoundTranslucido2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panelRoundTranslucido2Layout.createSequentialGroup()
                .add(57, 57, 57)
                .add(saicButton2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 352, Short.MAX_VALUE)
                .add(3, 3, 3)
                .add(buttonSeven1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        panelRoundTranslucido2Layout.setVerticalGroup(
            panelRoundTranslucido2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panelRoundTranslucido2Layout.createSequentialGroup()
                .addContainerGap()
                .add(panelRoundTranslucido2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(saicButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(buttonSeven1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        panelRoundTranslucido4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                panelRoundTranslucido4MouseClicked(evt);
            }
        });

        SaicTransfuciones.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SaicTransfuciones.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/siete.png"))); // NOI18N
        SaicTransfuciones.setText("Transfusión");
        SaicTransfuciones.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        SaicTransfuciones.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        SaicTransfuciones.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/img/siete.png"))); // NOI18N
        SaicTransfuciones.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/img/siete.png"))); // NOI18N
        SaicTransfuciones.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/img/siete.png"))); // NOI18N
        SaicTransfuciones.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/img/siete.png"))); // NOI18N
        SaicTransfuciones.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SaicTransfuciones.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SaicTransfucionesMouseClicked(evt);
            }
        });

        SaicDonaciones.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SaicDonaciones.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/rep1.png"))); // NOI18N
        SaicDonaciones.setText("Donación");
        SaicDonaciones.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        SaicDonaciones.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        SaicDonaciones.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/img/rep1.png"))); // NOI18N
        SaicDonaciones.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/img/rep1.png"))); // NOI18N
        SaicDonaciones.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/img/rep1.png"))); // NOI18N
        SaicDonaciones.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/img/cuatro.png"))); // NOI18N
        SaicDonaciones.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SaicDonaciones.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SaicDonacionesMouseClicked(evt);
            }
        });

        SaicConsultas.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SaicConsultas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/cinco.png"))); // NOI18N
        SaicConsultas.setText("Consultas");
        SaicConsultas.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        SaicConsultas.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        SaicConsultas.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/img/cinco.png"))); // NOI18N
        SaicConsultas.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/img/cinco.png"))); // NOI18N
        SaicConsultas.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/img/cinco.png"))); // NOI18N
        SaicConsultas.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/img/cinco.png"))); // NOI18N
        SaicConsultas.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SaicConsultas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SaicConsultasMouseClicked(evt);
            }
        });

        SaicBanco.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SaicBanco.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/tres.png"))); // NOI18N
        SaicBanco.setText("Banco ");
        SaicBanco.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        SaicBanco.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        SaicBanco.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/img/tres.png"))); // NOI18N
        SaicBanco.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/img/tres.png"))); // NOI18N
        SaicBanco.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/img/tres.png"))); // NOI18N
        SaicBanco.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/img/tres.png"))); // NOI18N
        SaicBanco.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SaicBanco.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SaicBancoMouseClicked(evt);
            }
        });

        org.jdesktop.layout.GroupLayout panelRoundTranslucido4Layout = new org.jdesktop.layout.GroupLayout(panelRoundTranslucido4);
        panelRoundTranslucido4.setLayout(panelRoundTranslucido4Layout);
        panelRoundTranslucido4Layout.setHorizontalGroup(
            panelRoundTranslucido4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panelRoundTranslucido4Layout.createSequentialGroup()
                .addContainerGap()
                .add(panelRoundTranslucido4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(SaicDonaciones, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 80, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(SaicTransfuciones, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 86, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panelRoundTranslucido4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                    .add(SaicBanco, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(SaicConsultas, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 75, Short.MAX_VALUE))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        panelRoundTranslucido4Layout.setVerticalGroup(
            panelRoundTranslucido4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panelRoundTranslucido4Layout.createSequentialGroup()
                .addContainerGap()
                .add(panelRoundTranslucido4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(SaicConsultas, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(SaicTransfuciones, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(panelRoundTranslucido4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(SaicDonaciones, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(SaicBanco, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        panelRoundTranslucido3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        SaicBanco4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SaicBanco4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/uno.png"))); // NOI18N
        SaicBanco4.setText("Catálogos");
        SaicBanco4.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        SaicBanco4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        SaicBanco4.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/img/uno.png"))); // NOI18N
        SaicBanco4.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/img/uno.png"))); // NOI18N
        SaicBanco4.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/img/uno.png"))); // NOI18N
        SaicBanco4.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/img/uno.png"))); // NOI18N
        SaicBanco4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SaicBanco4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SaicBanco4MouseClicked(evt);
            }
        });
        panelRoundTranslucido3.add(SaicBanco4, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, 73, 70));

        SaicBanco3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SaicBanco3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/cuatro4.png"))); // NOI18N
        SaicBanco3.setText("Movimientos");
        SaicBanco3.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        SaicBanco3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        SaicBanco3.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/img/cuatro4.png"))); // NOI18N
        SaicBanco3.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/img/cuatro4.png"))); // NOI18N
        SaicBanco3.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/img/cuatro4.png"))); // NOI18N
        SaicBanco3.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/img/cuatro4.png"))); // NOI18N
        SaicBanco3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SaicBanco3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SaicBanco3MouseClicked(evt);
            }
        });
        panelRoundTranslucido3.add(SaicBanco3, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 10, 90, 70));

        SaicBanco5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SaicBanco5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/uno2.png"))); // NOI18N
        SaicBanco5.setText("Opciones");
        SaicBanco5.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        SaicBanco5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        SaicBanco5.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/img/uno2.png"))); // NOI18N
        SaicBanco5.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/img/uno2.png"))); // NOI18N
        SaicBanco5.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/img/uno2.png"))); // NOI18N
        SaicBanco5.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/img/uno2.png"))); // NOI18N
        SaicBanco5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SaicBanco5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SaicBanco5MouseClicked(evt);
            }
        });
        panelRoundTranslucido3.add(SaicBanco5, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 10, 73, 70));

        SaicBanco1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SaicBanco1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/tres3.png"))); // NOI18N
        SaicBanco1.setText("Permisos");
        SaicBanco1.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        SaicBanco1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        SaicBanco1.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/img/tres3.png"))); // NOI18N
        SaicBanco1.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/img/tres3.png"))); // NOI18N
        SaicBanco1.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/img/tres3.png"))); // NOI18N
        SaicBanco1.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/img/tres3.png"))); // NOI18N
        SaicBanco1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SaicBanco1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SaicBanco1MouseClicked(evt);
            }
        });
        panelRoundTranslucido3.add(SaicBanco1, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 10, 73, 70));

        SaicSalir.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        SaicSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/Salir.png"))); // NOI18N
        SaicSalir.setText("Salir");
        SaicSalir.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        SaicSalir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        SaicSalir.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/img/Salir.png"))); // NOI18N
        SaicSalir.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/img/Salir.png"))); // NOI18N
        SaicSalir.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/img/Salir.png"))); // NOI18N
        SaicSalir.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/img/Saic.png"))); // NOI18N
        SaicSalir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SaicSalir.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SaicSalirMouseClicked(evt);
            }
        });
        panelRoundTranslucido3.add(SaicSalir, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 10, 73, 70));

        panelRoundTranslucido5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        saicButton3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        saicButton3.setText("Usuario:");
        saicButton3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                saicButton3MouseClicked(evt);
            }
        });
        panelRoundTranslucido5.add(saicButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 430, -1));

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                    .add(panelRoundTranslucido5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(panelRoundTranslucido2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .add(panelRoundTranslucido1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 197, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(18, 18, 18)
                        .add(panelRoundTranslucido4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 201, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(panelRoundTranslucido3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 466, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                    .add(layout.createSequentialGroup()
                        .add(panelRoundTranslucido2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .add(panelRoundTranslucido5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 38, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(panelRoundTranslucido3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 99, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(panelRoundTranslucido4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(panelRoundTranslucido1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 270, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void SaicDonadoresMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaicDonadoresMouseClicked
        Donadores2 pac2 = new Donadores2(this.getId());
        if (getReserva().getTitle().equals(pac2.getTitle())) {
        } else {
            this.getReserva().dispose();
            this.efectos1.setFrame(pac2);
            this.efectos1.abrirDisolver();
            setReserva(pac2);
        }
        this.panelRoundTranslucido1.setVisible(false);
    }//GEN-LAST:event_SaicDonadoresMouseClicked

    private void SaicCitasMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaicCitasMouseClicked

        Citas pac = new Citas(this.getId());
        if (getReserva().getTitle().equals(pac.getTitle())) {
        } else {
            this.getReserva().dispose();
            this.efectos1.setFrame(pac);
            this.efectos1.abrirDisolver();
            setReserva(pac);
        }
        this.panelRoundTranslucido1.setVisible(false);
    }//GEN-LAST:event_SaicCitasMouseClicked

    private void SaicTecnicosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaicTecnicosMouseClicked
        
        Tecnicos pac = new Tecnicos();
        if (getReserva().getTitle().equals(pac.getTitle())) {
        } else {
            this.getReserva().dispose();
            this.efectos1.setFrame(pac);
            this.efectos1.abrirDisolver();
            setReserva(pac);
        }
        this.panelRoundTranslucido1.setVisible(false);
    }//GEN-LAST:event_SaicTecnicosMouseClicked

    private void SaicConsultasMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaicConsultasMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_SaicConsultasMouseClicked

    private void SaicTransfucionesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaicTransfucionesMouseClicked
          Transfusion pac = new Transfusion(this.getId());
        if (getReserva().getTitle().equals(pac.getTitle())) {
        } else {
            this.getReserva().dispose();
            this.efectos1.setFrame(pac);
            this.efectos1.abrirDisolver();
            setReserva(pac);
        }
        this.panelRoundTranslucido4.setVisible(false);
    }//GEN-LAST:event_SaicTransfucionesMouseClicked

    private void SaicDonacionesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaicDonacionesMouseClicked
         Donacion pac = new Donacion(this.getId());
        if (getReserva().getTitle().equals(pac.getTitle())) {
        } else {
            this.getReserva().dispose();
            this.efectos1.setFrame(pac);
            this.efectos1.abrirDisolver();
            setReserva(pac);
        }
        this.panelRoundTranslucido4.setVisible(false);
    }//GEN-LAST:event_SaicDonacionesMouseClicked

    private void SaicBitacoraMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaicBitacoraMouseClicked
      
        Bitacora pac = new Bitacora();
        if (getReserva().getTitle().equals(pac.getTitle())) {
        } else {
            this.getReserva().dispose();
            this.efectos1.setFrame(pac);
            this.efectos1.abrirDisolver();
            setReserva(pac);
        }
        this.panelRoundTranslucido1.setVisible(false);
    }//GEN-LAST:event_SaicBitacoraMouseClicked

    private void SaicSalirMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaicSalirMouseClicked
        String res = (new Error(this, true, "¿Desea cerrar sesión?", 1, "¡SALIR!").activar());
        if (res.equals("1")) {
         //   this.dataSource1.consulta("insert into tbl_bitacora(movimiento,area,fecha,empleado_id) values('Ingreso usuario','Login',now(),"+this.jTextField2.getText()+");");
            this.dispose();
            getReserva().dispose();
            this.mascota.dispose();
            Login log = new Login();
            log.setVisible(true);
        }
    }//GEN-LAST:event_SaicSalirMouseClicked

    private void SaicBanco1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaicBanco1MouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_SaicBanco1MouseClicked

    private void SaicBanco3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaicBanco3MouseClicked
        this.panelRoundTranslucido4.setVisible(true);
    }//GEN-LAST:event_SaicBanco3MouseClicked

    private void SaicBanco4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaicBanco4MouseClicked
        this.panelRoundTranslucido1.setVisible(true);
    }//GEN-LAST:event_SaicBanco4MouseClicked

    private void SaicBanco5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaicBanco5MouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_SaicBanco5MouseClicked

    private void saicButton2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_saicButton2MouseClicked
        Inicial pac = new Inicial();
        if (getReserva().getTitle().equals(pac.getTitle())) {
        } else {
            this.getReserva().dispose();
            this.efectos1.setFrame(pac);
            this.efectos1.abrirDisolver();
            setReserva(pac);
        }
    }//GEN-LAST:event_saicButton2MouseClicked

    private void panelRoundTranslucido1MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelRoundTranslucido1MouseExited
        // TODO add your handling code here:
    }//GEN-LAST:event_panelRoundTranslucido1MouseExited

    private void saicButton3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_saicButton3MouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_saicButton3MouseClicked

    private void SaicPacientesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaicPacientesMouseClicked
         Pacientes pac = new Pacientes(this.getId());
         if (getReserva().getTitle().equals(pac.getTitle())) {
         } else {
             this.getReserva().dispose();
             this.efectos1.setFrame(pac);
             this.efectos1.abrirDisolver();
             setReserva(pac);
         }                                             
         this.panelRoundTranslucido1.setVisible(false);
    }//GEN-LAST:event_SaicPacientesMouseClicked

    private void panelRoundTranslucido1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_panelRoundTranslucido1KeyPressed
      
    }//GEN-LAST:event_panelRoundTranslucido1KeyPressed

    private void panelRoundTranslucido4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelRoundTranslucido4MouseClicked
         this.panelRoundTranslucido4.setVisible(false);
    }//GEN-LAST:event_panelRoundTranslucido4MouseClicked

    private void panelRoundTranslucido1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelRoundTranslucido1MouseClicked
         this.panelRoundTranslucido1.setVisible(false);
    }//GEN-LAST:event_panelRoundTranslucido1MouseClicked

    private void SaicBancoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SaicBancoMouseClicked
        Banco pac = new Banco();
        if (getReserva().getTitle().equals(pac.getTitle())) {
        } else {
            this.getReserva().dispose();
            this.efectos1.setFrame(pac);
            this.efectos1.abrirDisolver();
            setReserva(pac);         
        }
        this.panelRoundTranslucido4.setVisible(false);
    }//GEN-LAST:event_SaicBancoMouseClicked

    private void formWindowDeactivated(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowDeactivated
       this.panelRoundTranslucido1.setVisible(false);
       this.panelRoundTranslucido4.setVisible(false);
    }//GEN-LAST:event_formWindowDeactivated

private void buttonSeven1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonSeven1ActionPerformed
    if(!flag){
        mascota.setVisible(true);
        flag = true;
    }
    else{
        mascota.setVisible(false);
        flag = false;
    }
}//GEN-LAST:event_buttonSeven1ActionPerformed

    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                new Cabecera("","").setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private Comun.SaicButton SaicBanco;
    private Comun.SaicButton SaicBanco1;
    private Comun.SaicButton SaicBanco3;
    private Comun.SaicButton SaicBanco4;
    private Comun.SaicButton SaicBanco5;
    private Comun.SaicButton SaicBitacora;
    private Comun.SaicButton SaicCitas;
    private Comun.SaicButton SaicConsultas;
    private Comun.SaicButton SaicDonaciones;
    private Comun.SaicButton SaicDonadores;
    private Comun.SaicButton SaicPacientes;
    private Comun.SaicButton SaicSalir;
    private Comun.SaicButton SaicTecnicos;
    private Comun.SaicButton SaicTransfuciones;
    private org.edisoncor.gui.button.ButtonSeven buttonSeven1;
    private FuenteDeDatos.DataSource dataSource1;
    private FuenteDeDatos.Datahabilitador datahabilitador1;
    private Efectos.Efectos efectos1;
    private Comun.PanelRoundTranslucido panelRoundTranslucido1;
    private Comun.PanelRoundTranslucido panelRoundTranslucido2;
    private Comun.PanelRoundTranslucido panelRoundTranslucido3;
    private Comun.PanelRoundTranslucido panelRoundTranslucido4;
    private Comun.PanelRoundTranslucido panelRoundTranslucido5;
    private Comun.SaicButton saicButton2;
    private Comun.SaicButton saicButton3;
    // End of variables declaration//GEN-END:variables
    Inicial ini = new Inicial();
    public javax.swing.JFrame getReserva() {
        return reserva;
    }
    public void setReserva(javax.swing.JFrame reserva) {
        this.reserva = reserva;
    }
    public String getMensaje() {
        return mensaje;
    }
    public void setMensaje(String mensaje) {
        this.mensaje = mensaje;
    }
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
}
